package com.hxzy.module.merchant.mapstruct;

import com.hxzy.module.merchant.api.merchant.resp.BusinessResp;
import com.hxzy.module.merchant.entity.Business;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author wy
 * @Description business转换工具接口
 * @Date 2024/1/24 10:55
 * @Version 1.0
 */
@Mapper(componentModel = "spring")
@Component
public interface BusinessMapStruct {

    /**
     * 定义实现
     */
    BusinessMapStruct  INSTANCE= Mappers.getMapper(BusinessMapStruct.class);


    /**
     * 把List<Business> 转换为 List<BusinessResp>
     * @param list
     * @return
     */
    List<BusinessResp> convert(List<Business>  list);



}
